package lanou3g.myfirstapp36kr.base;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.FragmentActivity;

import cn.bmob.v3.Bmob;

/**
 * Created by dllo on 16/8/2.
 *
 */
public abstract class BaseActivity extends FragmentActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayout());
        Bmob.initialize(this, "f8490d3af05a9b59ef619aa17b6db9d4");
        initView();
        initData();
    }
    protected abstract int getLayout();
    protected abstract void initView();
    protected abstract void initData();
}
